﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Admin.Master" Inherits="System.Web.Mvc.ViewPage<MySite.Model.SkillInfo>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	新增技能
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">

    <h2>新增技能</h2>

    <% using (Html.BeginForm()) {%>
        <%: Html.ValidationSummary(true) %>

    <table width="100%" border="0" cellpadding="0" cellspacing="0" class="listable">
        <tr class="listheader">
            <td colspan="2">
                <h2>
                    技能内容</h2>
            </td>
        </tr>
        <tr>
            <td align="right" class="bj-grey-bg f-blue-1218">
                技能名称
            </td>
            <td>
                <%: Html.TextBoxFor(model => model.Name, new { @class="input"})%>
            </td>
        </tr>
        <tr>
            <td align="right" class="bj-grey-bg f-blue-1218">
                技能介绍
            </td>
            <td>
                 <%: Html.TextAreaFor(model => model.Content, new { @class = "input",@style = "width:99%", @id = "wysiwyg" })%>
                <script src="../../Scripts/jwysiwyg/jwysiwyg/jquery.wysiwyg.js" type="text/javascript"></script>
                    <script type="text/javascript">
                        (function ($) {
                            $('#wysiwyg').wysiwyg({
                                controls: {
                                    strikeThrough: { visible: true },
                                    underline: { visible: true },

                                    separator00: { visible: true },

                                    justifyLeft: { visible: true },
                                    justifyCenter: { visible: true },
                                    justifyRight: { visible: true },
                                    justifyFull: { visible: true },

                                    separator01: { visible: true },

                                    indent: { visible: true },
                                    outdent: { visible: true },

                                    separator02: { visible: true },

                                    subscript: { visible: true },
                                    superscript: { visible: true },

                                    separator03: { visible: true },

                                    undo: { visible: true },
                                    redo: { visible: true },

                                    separator04: { visible: true },

                                    insertOrderedList: { visible: true },
                                    insertUnorderedList: { visible: true },
                                    insertHorizontalRule: { visible: true },

                                    h4mozilla: { visible: true && $.browser.mozilla, className: 'h4', command: 'heading', arguments: ['h4'], tags: ['h4'], tooltip: "Header 4" },
                                    h5mozilla: { visible: true && $.browser.mozilla, className: 'h5', command: 'heading', arguments: ['h5'], tags: ['h5'], tooltip: "Header 5" },
                                    h6mozilla: { visible: true && $.browser.mozilla, className: 'h6', command: 'heading', arguments: ['h6'], tags: ['h6'], tooltip: "Header 6" },

                                    h4: { visible: true && !($.browser.mozilla), className: 'h4', command: 'formatBlock', arguments: ['<H4>'], tags: ['h4'], tooltip: "Header 4" },
                                    h5: { visible: true && !($.browser.mozilla), className: 'h5', command: 'formatBlock', arguments: ['<H5>'], tags: ['h5'], tooltip: "Header 5" },
                                    h6: { visible: true && !($.browser.mozilla), className: 'h6', command: 'formatBlock', arguments: ['<H6>'], tags: ['h6'], tooltip: "Header 6" },

                                    separator07: { visible: true },

                                    cut: { visible: true },
                                    copy: { visible: true },
                                    paste: { visible: true }
                                }
                            });
                        })(jQuery);
    </script>
            </td>
        </tr>
        <tr>
            <td align="right" class="bj-grey-bg f-blue-1218">
                排序
            </td>
            <td>
                <%= Html.TextBoxFor(model => model.Position, new { @class = "input" })%>
            </td>
        </tr>
    </table>
    <div class="bj-sp10">
    </div>
    <div class="f-blue-1218 bj-center">
        <input type="submit" class="admin_btn" value="保存" />
    </div>
    <% } %>

    <div>
        <%= Html.ActionLink("返回", "SkillList") %>
    </div>


</asp:Content>

<asp:Content ID="Content3" ContentPlaceHolderID="ScriptContent" runat="server">
</asp:Content>

